/*@import "./main.less";*/
@import "./config.less";

/*-------选择商品区域-------*/
.select-product{
  margin-top: 60px;
  overflow: hidden;
  .select-product-left{
    width: 420px;
    float: left;
    .view-logo{
      width: 420px;
      height: 420px;
      img{
        width: 100%;
        height: 100%;
      }
    }
    .product-imgs{
      margin-top: 25px;
      text-align: center;
      cursor: pointer;
    }
    .product-logo{
      width: 60px;
      height: 60px;
      margin-top: 1px;
      border: 1px solid #ffffff;
    }
    .active{
      border: 1px solid @blue;
    }
  }
  .select-product-right{
    float: right;
    width: 690px;
    .product-name{
      font-size: 18px;
      font-weight: bold;
    }
    .product-desc{
      font-size: 14px;
      color: @common;
      margin-top: 10px;
    }
    .xiaoliang-section{
      width: 690px;
      height: 90px;
      margin-top: 30px;
      background-image: url("/img/xiaoliangdi.png");
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #ffffff;
      font-size: 14px;
      p:first-child{
        margin-left: 30px;
      }
      p:last-child{
        margin-right: 69px;
      }
      span{
        font-size: 18px;
        font-weight: bold;
      }
    }
  }
  .product-info{
    margin-top: 30px;
    .product-info-group{
      height: 30px;
      overflow: hidden;
    }
    .product-info-label{
      line-height: 30px;
      font-size: 14px;
      color: @grey;
      line-height: 30px;
      float: left;
      width: 120px;
    }
    .product-info-items{
      float: left;
      font-size: 0;
    }
    .product-info-item{
      display: inline-block;
      width: 120px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      font-size: 14px;
      color: @common;
    }
    .product-info-item + .product-info-item{
      margin-left: 5px;
    }
    .product-info-item-left{
      color: @white;
      background-color: #a2a4a5;
      border-top-left-radius: 30px;
      border-bottom-left-radius: 30px;
    }
    .product-info-item-block{
      color: @white!important;
      background-color: #a2a4a5;
    }
    .product-info-item-block:first-child{
       border-top-left-radius: 30px;
       border-bottom-left-radius: 30px;
    }
    .product-info-item-block:last-child{
      border-top-right-radius: 30px;
      border-bottom-right-radius: 30px;
    }
    .product-info-item-right{
      color: @white;
      background-color: #a2a4a5;
      border-top-right-radius: 30px;
      border-bottom-right-radius: 30px;
    }
  }
  .express-select{
    margin-top: 30px;
    overflow: hidden;
    .express-select-label{
      font-size: 14px;
      color: @grey;
      width: 120px;
      float: left;
    }
    .express-select-info{
      float: left;
      color: @common;
      font-size: 14px;
      span{
        margin-left: 10px;
      }
    }
    .grey{
      color: @grey;
    }
  }
  .type-group{
    margin-top: 60px;
    overflow: hidden;
    .type{
      width: 150px;
      height: 45px;
      font-size: 18px;
      float: left;
      text-align: center;
      line-height: 45px;
    }
    .type-left{
      border: 1px solid @blue;
      color: @blue;
      box-sizing: border-box;
    }
    .type-right{
      background-color: @blue;
      color: @white;
    }
  }
  .form-tags{
    margin-top: 60px;
    .tag{
      line-height: 40px;
      text-align: center;
      border-top: 1px solid #E8E8E8;
      color: @grey;
      width: 120px;
      float: left;
      position: relative;
      cursor: pointer;
    }
    .tag-active{
      color: @common;
      font-weight: bold;
      border-top: 2px solid @blue;
      margin-top: -1px;
      span{
        display: block;
        border-left: 5px solid @white;
        border-right: 5px solid @white;
        border-top: 5px solid @blue;
        width: 0;
        height: 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
      }
    }
  }
  .form-contents{
    clear: both;
    padding-top: 24px;
    .form-group{
      overflow: hidden;
      .form-label{
        line-height: 30px;
        color: @common;
        font-size: 14px;
        width: 90px;
        float: left;
      }
      .form-control{
        float: left;
        position: relative;
        input{
          width: 150px;
          height: 30px;
          border: 1px solid @grey;
          padding-left: 17px;
          padding-right: 17px;
          box-sizing: border-box;
        }
        span{
          line-height: 30px;
          color: @grey;
          font-size: 14px;
        }
        .error-message{
          font-size: 14px;
          margin-left: 10px;
          color: @red;
          background-image: url("/img/error.png");
          background-size: 14px 14px;
          background-repeat: no-repeat;
          background-position: left center;
          padding-left: 20px;
          display: none;
        }
        .total-price{
          color: @blue;
        }
      }
    }
    .form-group + .form-group{
      margin-top: 13px;
    }
  }
  .form-btn-group{
      margin-top: 20px;
      .form-btn{
        width: 120px;
        height: 30px;
        text-align: center;
        line-height: 28px;
        font-size: 14px;
        float: left;
        cursor: pointer;
      }
      .form-btn-left{
        color: @blue;
        border: 1px solid @blue;
        box-sizing: border-box;
      }
      .form-btn-right{
        background-color: @blue;
        border: 1px solid @blue;
        color: @white;
        border:none;
      }
  }
}


.jiaoyi-type{
  margin-top: 70px;
  width: 100%;
  height: 90px;
  background-color: #d2eef5;
  .jiaoyi-type-item{
    float: left;
    width: 300px;
    height: 90px;
    .jiaoyi-type-title{
      padding-top: 15px;
      padding-left: 15px;
      font-size: 16px;
    }
  }
  .jiaoyi-type-item + .jiaoyi-type-item{
    margin-left: 135px;
  }
  .items{
    padding-top: 15px;
    padding-left: 15px;
    font-size: 0;
    color: @common;
    span{
      font-size: 14px;
    }
    span + span{
      margin-left: 20px;
    }
  }
}

.product-navbar{
  margin-top: 36px;
  height: 45px;
  .nav-item{
    width: 150px;
    height: 45px;
    position: relative;
    float: left;
    color: @blue;
    font-size: 18px;
    text-align: center;
    line-height: 45px;
    border: 1px solid @blue;
    box-sizing: border-box;
    border-left: none;
    cursor: pointer;
  }
  span{
    display: none;
    border-top: 5px solid @blue;
    border-left: 5px solid @white;
    border-right: 5px solid @white;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .nav-item:nth-child(1){
    border-left: 1px solid @blue;
  }
  .nav-item-active{
    background-color: @blue;
    border: none;
    color: @white;
    span{
      display: block;
    }
  }
}

.product-content{
  clear: both;
  margin-top: 30px;
  .product-content-section{
    display: none;
  }
  .active{
    display: block;
  }
  .product-info{
      border: 1px solid #E8E8E8;
      box-sizing: border-box;
  }
  .product-info-top{
    padding-bottom: 30px;
    /*border-bottom: 1px solid #e8e8e8;*/
  }
  .product-info-bottom{
    padding-bottom: 30px;
  }
  .product-info-group{
    margin-top: 30px;
    overflow: hidden;
    .product-info-item{
      width: 389px;
      float: left;
      display: flex;
      p:first-child{
        padding-left: 30px;
        width: 115px;
        font-size: 12px;
        color: @grey;
      }
      p:last-child{
        font-size: 12px;
      }
    }
  }
}

/*---------成交区域样式--------*/
.trade-section{
  width: 100%;
  thead{
    tr{
      background-color:#F9F9F9;
      border: 1px solid #e8e8e8;
    }
    th{
      height: 45px;
      line-height: 45px;
      text-align: left;
      padding-left: 15px;
      font-size: 14px;
    }
  }
  tbody{
    tr{
      border: 1px solid #e8e8e8;
      border-top: none;
    }
    tr:nth-child(2n){
      background-color: #f9f9f9;
    }
    .user-top{
      display: flex;
      align-items: center;
      margin-top: 15px;
      margin-left: 15px;
      span{
        font-size: 12px;
        color: #666666;
        vertical-align: middle;
        margin-right: 5px;
      }
      .scores{
        vertical-align: middle;
        img{
          width: 14px;
          height: 16px;
        }
      }
    }
    .user-bottom{
      margin-top: 8px;
      margin-left: 15px;
      margin-bottom: 10px;
      .user-icon{
        width: 23px;
        height: 16px;
      }
    }
    td{
      font-size: 12px;
      color: @common;
    }
    .center{
      vertical-align: middle;
      span{
        margin-left: 15px;
      }
    }
    .count-top{
      color: @common;
      /*margin-top: 18px;*/
      margin-left: 35px;
    }
    .count-bottom{
      color: @common;
      margin-top: 5px;
      margin-left: 15px;
    }
  }
}

.pingjia-content{
  .pingjia-title{
    height: 45px;
    padding-left: 13px;
    background-color: #f9f9f9;
    border: 1px solid #e8e8e8;
    line-height: 45px;
    label{
      font-size: 14px;
    }
    label + label{
      margin-left: 25px;
      .count{
        color: @blue;
      }
    }
    .pingjia-title-right{
      float: right;
      margin-right: 33px;
      select{
        margin-left: 42px;
        width: 108px;
        height: 26px;
        border: 1px solid #e8e8e8;
      }
    }
  }

  .pingjia-list{
    .pingjia-item{
        padding: 15px;
        padding-right: 0;
        border: 1px solid #e8e8e8;
        border-top: none;
        display: flex;
        justify-content: space-between;
        .pingjia-item-left{
          .top{
            display: flex;
            align-items: center;
          }
          .user-name{
            font-size: 12px;
            color: @common;
          }
          .scores{
            vertical-align: middle;
            font-size: 0;
            margin-left: 5px;
            .score-icon{
              width: 14px;
              height: 16px;
            }
            .score-icon + .score-icon{
              margin-left: 4px;
            }
          }
          .user-bottom{
            margin-top: 10px;
            font-size: 12px;
            color: @common;
            img{
              width: 23px;
              height: 16px;
            }
          }
        }
        .pingjia-item-right{
          width: 1000px;
          .top{
            height: 45px;
            background-color: #d2eef5;
            line-height: 45px;
            font-size: 12px;
            color: @common;
            padding-left: 15px;
            padding-right: 15px;
            .star_icon{
              width: 14px;
              height: 12px;
              vertical-align: middle;
            }
            .count-label{
              margin-left: 30px;
            }
            .createdTime{
              float: right;
            }
          }
          .pingjia-content{
            margin-top: 10px;
            padding-left: 15px;
            font-size: 12px;
            color: @common;
          }
        }
    }
  }
}

/*---------加工说明---------*/
.description-section{
  height: 123px;
  border: 1px solid #e8e8e8;
  border-left: 5px solid @blue;
  .title{
    margin-top: 15px;
    margin-left: 15px;
    font-size: 14px;
  }
  .group{
    margin-left: 15px;
    margin-top: 30px;
  }
  .item{
    float: left;
    position: relative;
    width: 25px;
    p{
      position: absolute;
      top: 32px;
      width: 100px;
      left: -37.5px;
      text-align: center;
      font-size: 12px;
      color: @common;
      line-height: 16px;
    }
    .line{
      position: absolute;
      left: 25px;
      top: 12.5px;
      width: 90px;
      height: 1px;
      background-color: @blue;
    }
    .two-line{
      text-align: left;
      margin-left: 10px;
    }
  }
  .item:first-child{
    p{
      left: 0;
      text-align: left;
    }
  }
  .item:last-child{
    .line{
      display: none;
    }
  }
  .item + .item{
    margin-left: 90px;
  }
  .item-index{
    width: 25px;
    height: 25px;
    background-color: @blue;
    border-radius: 100%;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    line-height: 25px;
  }
}
.description-section + .description-section{
  margin-top: 30px;
}
.description-section-plus{
  height: 138px;
}
.description-section:nth-child(2n){
  background-color: #F9F9F9;
}

.empty-list{
  text-align: center;
  font-size: 14px;
  color: @grey;
  line-height: 80px;
}

.product-list{
  margin-bottom: 147px;
}